package com.jt9003.service.impl;

import com.jt9003.dao.Patient_recordsMapper;
import com.jt9003.pojo.Archives;
import com.jt9003.service.Patient_recordsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class Patient_recordsimpl implements Patient_recordsService {
    @Resource
    private Patient_recordsMapper patient_recordsMapper;


    @Override
    public List<Archives> getRecordslist(Map map) {
        return  patient_recordsMapper.getRecordslist(map);
    }

    @Override
    public int getRecordscount() {
        return  patient_recordsMapper.getRecordscount();
    }

    @Override
    public int upRecordsid(Archives archives) {
        return  patient_recordsMapper.upRecordsid(archives);
    }


    @Override
    public int delRecords(Integer p_id) {
        return patient_recordsMapper.delRecords(p_id);
    }
}
